package com.example.hrms.Service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.hrms.Entity.Medicalrecords;
import com.example.hrms.Mapper.MedicalrecordsMapper;
import com.example.hrms.Service.MedicalrecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MedicalrecordsServiceImpl extends ServiceImpl<MedicalrecordsMapper, Medicalrecords> implements MedicalrecordsService {
    @Autowired
    private MedicalrecordsMapper medicalrecordsMapper;


    @Override
    public List<Medicalrecords> All() {
        return medicalrecordsMapper.All();
    }

    @Override
    public void Del(int id) {
        medicalrecordsMapper.Del(id);
    }

    @Override
    public void AddMedRec(Medicalrecords medicalrecords) {
        medicalrecordsMapper.AddMedRec(medicalrecords);
    }

    @Override
    public void Update(Medicalrecords medicalrecords) {
        medicalrecordsMapper.Update(medicalrecords);
    }

    @Override
    public List<Medicalrecords> Find(int id) {
        return medicalrecordsMapper.Find(id);
    }
}

